package com.fary.configroot;

import com.fary.configweb.ConvertersConfig;
import com.fary.configweb.WebConfig;
import com.fary.configweb.WebMvcConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@ComponentScan(basePackages = "com.fary.service",
        excludeFilters = {
                @Filter(type = FilterType.ANNOTATION, value = EnableWebMvc.class),
                @Filter(type = FilterType.ASSIGNABLE_TYPE, value = {WebConfig.class, ConvertersConfig.class, WebMvcConfiguration.class}),
                @Filter(type = FilterType.REGEX, pattern = "com.fary.controller.*"),
                @Filter(type = FilterType.REGEX, pattern = "com.fary.configweb.*")
        })
public class RootConfig {


}